/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package adcon.negocio.banco;

import adcon.negocio.banco.Banco;
import java.io.Serializable;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;

/**
 *
 * @author Administrador
 */
@Entity
public class ContaBancaria implements Serializable {
    @Id
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private int codigo;
    private String contaCorrente;
    private String contaPoupanca;
    @OneToOne(cascade=CascadeType.ALL)
    private Banco Banco;
    private String usuarioBanking;
    private String senhaBanking;
    private String cpfBanking;
    private String limiteBanking;

    public ContaBancaria(String contaCorrente, String contaPoupanca, Banco Banco) {
        this.contaCorrente = contaCorrente;
        this.contaPoupanca = contaPoupanca;
        this.Banco = Banco;
    }

    public ContaBancaria() {
    }

    public Banco getBanco() {
        return Banco;
    }

    public void setBanco(Banco Banco) {
        this.Banco = Banco;
    }

    public String getContaCorrente() {
        return contaCorrente;
    }

    public void setContaCorrente(String contaCorrente) {
        this.contaCorrente = contaCorrente;
    }

    public String getContaPoupanca() {
        return contaPoupanca;
    }

    public void setContaPoupanca(String contaPoupanca) {
        this.contaPoupanca = contaPoupanca;
    }

    public int getCodigo() {
        return codigo;
    }

    public void setCodigo (int codigo){
        this.codigo = codigo;
    }

    public String getCpfBanking() {
        return cpfBanking;
    }

    public void setCpfBanking(String cpfBanking) {
        this.cpfBanking = cpfBanking;
    }

    public String getLimiteBanking() {
        return limiteBanking;
    }

    public void setLimiteBanking(String limiteBanking) {
        this.limiteBanking = limiteBanking;
    }

    public String getSenhaBanking() {
        return senhaBanking;
    }

    public void setSenhaBanking(String senhaBanking) {
        this.senhaBanking = senhaBanking;
    }

    public String getUsuarioBanking() {
        return usuarioBanking;
    }

    public void setUsuarioBanking(String usuarioBanking) {
        this.usuarioBanking = usuarioBanking;
    }

    


}
